import {NativeModules} from 'react-native'

const RNModule = NativeModules.RNModule
const RNFileModule = NativeModules.RNFileModule

export function openAssignFolder(path){
    return RNModule.openAssignFolder(path)
}

export function createEthAccount(){
    return RNModule.createEthAccount();
}

export function readNativeFile(path){
    return RNFileModule.readFile(path)
}

export function decodeNativeFile(path,target,pwd){
    return RNFileModule.decodeFile(path,target,pwd)
}

export function writeByteToFile(path,data){
    return RNFileModule.writeByteToFile(path,data)
}

